﻿using System;
namespace FxhjpgWeb.Model
{
	///<summary>
	///
	///</summary>
	public class SysModule : ModelBase<string>
	{
		#region 成员字段
		
		private string _author = String.Empty;
		private string _href = String.Empty;
		private string _inIP = String.Empty;
		private string _name = String.Empty;
		private string _pId = String.Empty;
		private double _sort = default(double);
		private string _title = String.Empty;
		
		#endregion
		
		#region 构造方法
		
		public SysModule() { }
		
		#endregion
		
		#region 成员方法
		
		public override int GetHashCode()
		{
			System.Text.StringBuilder sb = new System.Text.StringBuilder();
			sb.Append(this.GetType().FullName);
			sb.Append(_author);
			sb.Append(_href);
			sb.Append(_inIP);
			sb.Append(_name);
			sb.Append(_pId);
			sb.Append(_sort);
			sb.Append(_title);
			return sb.ToString().GetHashCode();
		}
		
		#endregion
		
		#region 成员属性
		
		///<summary>
		///作者
		///</summary>
		public string Author
		{
			get
			{
				return _author;
			}
			set
			{
				_author = value;
			}
		}
		///<summary>
		///链接页面
		///</summary>
		public string Href
		{
			get
			{
				return _href;
			}
			set
			{
				_href = value;
			}
		}
		///<summary>
		///添加IP
		///</summary>
		public string InIP
		{
			get
			{
				return _inIP;
			}
			set
			{
				_inIP = value;
			}
		}
		///<summary>
		///模块名称
		///</summary>
		public string Name
		{
			get
			{
				return _name;
			}
			set
			{
				_name = value;
			}
		}
		///<summary>
		///父级编号
		///</summary>
		public string PId
		{
			get
			{
				return _pId;
			}
			set
			{
				_pId = value;
			}
		}
		///<summary>
		///排列顺序
		///</summary>
		public double Sort
		{
			get
			{
				return _sort;
			}
			set
			{
				_sort = value;
			}
		}
		///<summary>
		///模块显示名称
		///</summary>
		public string Title
		{
			get
			{
				return _title;
			}
			set
			{
				_title = value;
			}
		}
		
        /// <summary>
        /// 自定义查询条件
        /// </summary>
        public string CustomWhere { get; set; }
		
		#endregion
	}
		
	public static class SysModuleHash
	{
		public const string TopNum = "TopNum";
		public const string OrderField = "OrderField";
		public const string OrderDirection = "OrderDirection";
		public const string Author = "Author";
		public const string Href = "Href";
		public const string Id = "Id";
		public const string InIP = "InIP";
		public const string Name = "Name";
		public const string PId = "PId";
		public const string Sort = "Sort";
		public const string Title = "Title";
		
        public const string CustomWhere = "CustomWhere";
	}
}